package com.fulong.common.utils;

import java.lang.reflect.Field;

public class PageHandler {
    public static void setPage(String args) throws ClassNotFoundException, IllegalAccessException, InstantiationException, NoSuchFieldException {
        //通过反射拿到这个类的localvar属性，通过这个属性设置分页查询
        Field field= Class.forName("JDBC_Agent.ConnectionHandler").getField("localvar");
        ThreadLocal o = (ThreadLocal)field.get(null);
        o.set(args);
    }
}
